<style>
    .active{
        background-color: red;
    }
</style>
<div>
    <h3>tab切换，跳转路由:</h3>
    <!-- state.includes()判断是否为指定的路由 -->
    <button ng-click="go('index.tab.page1')" ng-class="{active:state.includes('index.tab.page1')}">page1</button>
    <button ng-click="go('index.tab.page2')" ng-class="{active:state.includes('index.tab.page2')}">page2</button>
    <button ng-click="go('index.tab.page3')" ng-class="{active:state.includes('index.tab.page3')}">page3</button>

    <div ui-view></div>
</div>